<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/tab.css">
</head>
<body>
    <div class="z-tab">
        <div class="tab-head">
            <div class="active">选项卡一</div>
            <div>选项卡二</div>
            <div>选项卡三</div>
        </div>
        <div class="tab-content">
            <div class="tab-item this-show">内容一</div>
            <div class="tab-item">内容二</div>
            <div class="tab-item">内容三</div>
        </div>
    </div>
    <script type="text/javascript" src="js/tab.js"></script>
    <script type="text/javascript">
        const tab = new Tab().init();
    </script>
</body>
</html>